package Employee1;

class BasePlusSalesEmployee extends SalesEmployee{
    private double baseSalary; //定义基础工资baseSalary
    //无参构造方法
    public BasePlusSalesEmployee(){}
    //有参构造方法
    public BasePlusSalesEmployee(String name,int month,double sales,double 		rate,double baseSalary){
        super(name,month,sales,rate);
        this.baseSalary = baseSalary;
    }
    //get/set方法对私有属性的调用和设置
    public double gatBaseSalary(){
        return baseSalary;
    }
    public void setBaseSalary(){
        this.baseSalary = baseSalary;
    }
    public double getSalary(int month){
        return baseSalary+super.getSalary(month);
    }
}
